package com.yan.service.impl;

import com.yan.entity.OrderDTO;
import com.yan.service.IOrderService;
import org.springframework.stereotype.Service;

@Service
public class SimpleOrderServiceImpl implements IOrderService {
    @Override
    public String handle(OrderDTO orderDTO) {
        String code = orderDTO.getCode();
        String result;
        switch (code) {
            case "2":
                result = "处理团购订单";
                break;
            case "3":
                result = "处理促销订单";
                break;
            default:
                result = "处理普通订单";
        }
        return result;
    }
}
